package com.mingtu.jgspatrol.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @ClassName :
 * @Author : wkk
 * @Date : 2021-11-16 14:14:29
 * @Email : 1281573890@qq.com
 * @Eescription :
 */
public class TaskListCommonBean {

    /**
     * msg : success
     * code : 0
     * page : {"totalCount":1,"pageSize":10,"totalPage":1,"currPage":1,"list":[{"id":23,"name":"测试任务1","memo":"2021-11-16 11:22","type":2,"createTime":"2021-11-17 23:59:59","userName":"明图"}]}
     */

    private String msg;
    private int code;
    private PageBean page;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public static class PageBean {
        /**
         * totalCount : 1
         * pageSize : 10
         * totalPage : 1
         * currPage : 1
         * list : [{"id":23,"name":"测试任务1","memo":"2021-11-16 11:22","type":2,"createTime":"2021-11-17 23:59:59","userName":"明图"}]
         */

        private int totalCount;
        private int pageSize;
        private int totalPage;
        private int currPage;
        private List<ListBean> list;

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public int getCurrPage() {
            return currPage;
        }

        public void setCurrPage(int currPage) {
            this.currPage = currPage;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements MultiItemEntity {
            /**
             * id : 23
             * name : 测试任务1
             * memo : 2021-11-16 11:22
             * type : 2
             * createTime : 2021-11-17 23:59:59
             * userName : 明图
             */

            private int id;
            private String name;
            private String memo;
            private int type;
            private String createTime;
            private String userName;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getMemo() {
                return memo;
            }

            public void setMemo(String memo) {
                this.memo = memo;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            @Override
            public int getItemType() {
                return type;
            }
        }
    }
}
